package com.akcome.apollo.domain.enums;

/**
 * Created by SDD on 2018/2/28.
 */
public enum  SmsStatusEnum {
	WAIT("0", "待发送"),

	SUCCESS("1", "成功"),

	FAIL("2", "发送失败"),

	SEND_IN("3", "发送中");

	private String code;

	private String desc;

	private SmsStatusEnum(String code,String desc){
		this.code = code;
		this.desc = desc;
	}

	public static SmsStatusEnum getByCode(String code) {
		for (SmsStatusEnum enumObj : SmsStatusEnum.values()) {
			if (enumObj.getCode().equals(code)) {
				return enumObj;
			}
		}
		return null;
	}
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

}
